package com.project.service.impl;

import com.project.bean.ProductBean;
import com.project.mapper.IProductMapper;
import com.project.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class IProductServiceImpl implements IProductService {
    @Autowired
    IProductMapper mapper;
    @Override
    public List<ProductBean> findAll() {
        return mapper.findAll() ;
    }

    @Override
    public ProductBean findById(int id) {
        return mapper.findById(id);
    }
}
